import 'dart:html';

import '../webview.dart';

class WebviewBridgeImpl extends WebviewBridge {
  WebviewBridgeImpl.init() : super('web');

  late IFrameElement iframe;
  @override
  Future<bool> create() async {
    iframe = IFrameElement.created();

    return true;
  }

  @override
  void dispose() {}

  @override
  bool load(String url) {
    iframe.src = url;
    return true;
  }
}
